package cn.edu.sptc.fanjing.hellospring.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/date")
public class HtmlController {


    @RequestMapping(method = RequestMethod.GET,value = "/Html")
    public String getHTML() {
        return "home";
    }}
//        @ResponseBody
//        public String Html() {
//            return "home";}
//        类名首字母大写，方法名首字母小写
//        public String helloWorld
//                (@RequestParam(value = "name",required = true,defaultValue = "Html")
//                 String name){
//            return "Hello world "+name+" !";
//        }


